package com.it.shiro.enums;

/**
 * ClassName:ErrorCode
 * Package:com.it.shiro.enums
 * Description: 描述信息
 *
 * @date:2022/3/30 15:44
 * @author:动力节点
 */
public enum ErrorCodes {

    USERNAME_ERROR("0000","用户名出现错误"),
    PASSWORD_ERROR("1000","密码出现错误"),
    ACCOUNT_ERROR("2000","账号信息错误"),
    LOG_ERROR("3000","登录出现错误");


    private String code;
    private String msg;

    ErrorCodes(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    ErrorCodes() {
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}

